home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d13 / pclearn5.arc / PCL.ARC / DOS2.TUT < prev    next >
Text File  |  1991-02-16  |  16KB  |  328 lines

  1.        
  2.        ████████████████████████████████████████████████████████████████ 
  3.  
  4.                  KEYBOARD SHORTCUTS AND ADVANCED DOS COMMANDS 
  5.  
  6.        ████████████████████████████████████████████████████████████████ 
  7.  
  8.        Life gets more interesting the longer you stay in the game. DOS 
  9.        tries to offer you some shortcuts from time to time. We will 
  10.        talk about some advanced DOS commands, but first let's take a 
  11.        side trip to the keyboard. 
  12.  
  13.        The keyboard function keys labelled F1 through F10 access a 
  14.        special buffer storage area of DOS. Additional key combinations 
  15.        offer other shortcuts. Some keyboards have twelve function keys 
  16.        while others have the function keys arranged along the top of 
  17.        the keyboard rather than stacked along the side. 
  18.  
  19.        The best way to understand how the function keys work is to 
  20.        pause and explain the concept of a keyboard buffer which is 
  21.        little more than a temporary storage area in the computer's 
  22.        memory. A buffer is necessary because the activities of input 
  23.        and output (using the keyboard or printer) generally are much 
  24.        slower than those activities which interact with the speedy RAM 
  25.        memory chips and CPU. 
  26.  
  27.        Data from the keyboard is placed into a memory buffer area until 
  28.        you signal the PC that you are ready to move on to the next 
  29.        task. Usually this signal is the carriage return or enter key. A 
  30.        buffer storage area can vary in size. For the DOS command line 
  31.        buffer, up to 127 characters can be contained. When data is 
  32.        entered into the buffer is stays there until flushed out. DOS 
  33.        allows some limited repeating and editing of data stored in the 
  34.        buffer (data you previously typed at the keyboard) using the 
  35.        function keys. 
  36.  
  37.        Tip: The following discussion applies to the function keys WHEN 
  38.        YOU ARE USING DOS! When you use an application such as your word 
  39.        processor or database program the function keys will probably 
  40.        have different uses! 
  41.  
  42.                            On the FUNCTION Keyboard:
  43.                                     ┌──╥──┐                                   
  44.                                     │f1║f2│                                  
  45.                                     ╞══╬══╡                                   
  46.                                     │f3║f4│                                
  47.                                     ╞══╬══╡                                
  48.                                     │f5║f6│                                
  49.                                     ╞══╬══╡                               
  50.                                     │f7║f8│                              
  51.                                     ╞══╬══╡                               
  52.                                     │f9║f0│                                 
  53.                                     └──╨──┘       
  54.        The function keys assume different roles for different programs. 
  55.        F1 through F5 have special meaning within DOS. They help in 
  56.        reissuing/editing the last DOS command typed.         
  57.  
  58.        F1 Repeats one character per keystroke of the LAST command 
  59.        typed. 
  60.  
  61.        F2 Repeats characters stored in the buffer up to the character 
  62.        you typed after pressing F2. 
  63.  
  64.        F3 Repeats the entire LAST command ------>  USEFUL! Repeat last 
  65.        command and edit it over again with other function keys or the 
  66.        backspace key. 
  67.  
  68.        F4 Deletes all characters in the buffer up to the character you 
  69.        typed after F4. The buffer is not displayed. To see the buffer 
  70.        on screen tap F3. 
  71.  
  72.        F5 Stores the current line for re-editing. F5 is used with the 
  73.        other four keys so you can repair long DOS commands which 
  74.        weren't typed in properly.  When you press F5 the current line 
  75.        will be marked and the cursor will move down one line WIHTOUT a 
  76.        new prompt. Then use the other function keys to finish editing. 
  77.  
  78.        On the MAIN Keyboard: 
  79.  
  80.  ╔═══╤═══╤═══╤═══╤═══╤═══╤═══╤═══╤═══╤═══╤═══╤═══╤═══╤═════╤══════╤══════╗ 
  81.  ║Esc│ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ -  │NumLoc│Break ║ 
  82.  ╟───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┬─┴─┬───┬┴──┬───╢ 
  83.  ║ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ]   │   │ 7 │ 8 │ 9 ╢ 
  84.  ╟─────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬───┤ ┘├───┼───┼───╢ 
  85.  ║  Ctrl │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ ` │   │ 4 │ 5 │ 6 ║ 
  86.  ╟─────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┼───┼───┼───┼───╢ 
  87.  ║     │ \ │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │     │   │ 1 │ 2 │ 3 ╢
  88.  ╟─────┴───┼───┴───┴───┴───┴───┴───┴───┴───┴───┴───┼─────┼───┴───┼───┴───╢
  89.  ║    Alt  │                                       │ Ins │  Del  │       ║
  90.  ╚═════════╧═══════════════════════════════════════╧═════╧═══════╧═══════╝
  91.  
  92.        Delete key deletes character on OR to the right of cursor 
  93.  
  94.        Backspace key removes last character typed - to the left of 
  95.        cursor 
  96.  
  97.        Insert key puts keyboard into insert mode    
  98.  
  99.        Escape key voids current input and exits or escapes to previous 
  100.        settings. 
  101.  
  102.        PageUp key in many applications moves you up one screen of text. 
  103.  
  104.        PageDown key in many applications moves you down one screen of 
  105.        text. 
  106.  
  107.        Left and right arrow keys move cursor left and right without 
  108.        deleting 
  109.  
  110.        Numlock key toggles (goes back and forth) between numbers on the 
  111.        numeric keypad and cursor control (functions such as page down, 
  112.        move cursor right, etc.)      
  113.  
  114.        Pressing two or more keys at the same time has yet further 
  115.        effects. Usually you hold down the Control (Ctrl) key and then 
  116.        press another key for a required result: 
  117.  
  118.        Shift PrtSc prints one screen of data on your printer. 
  119.  
  120.        Control-C or Control Break Aborts current DOS command -----> 
  121.        USEFUL! 
  122.  
  123.        Control-H or backspace removes last character typed 
  124.  
  125.        Control-P or Control PrtSc sends output to printer until turned 
  126.        off (by typing same key combination (Control P) a second time) 
  127.  
  128.        Control Numlock or Control S pauses screen output. Press any key 
  129.        to continue. 
  130.  
  131.        Conrol- Alt-Delete keys together shuts down computer and WIPES 
  132.        OUT all computer data!  ALL DATA AND PROGRAMS LOST from RAM memory 
  133.        but whatever data stored on disk(s) remains. 
  134.  
  135.        Other keys have special meanings and can be confused with their 
  136.        look-alike twins: the slash (/) and Backslash (\) are different 
  137.        but easily confused. The Apostrophe (') and Grave Accent (`), 
  138.        the capital O and Zero (0). 
  139.  
  140.        ████████████████████████████████████████████████████████████████ 
  141.  
  142.                              ADVANCED DOS COMMANDS 
  143.        
  144.        ████████████████████████████████████████████████████████████████ 
  145.  
  146.        Now on to some of the more advanced (and useful) DOS commands 
  147.        and methods which we continue from the previous DOS tutorial: 
  148.  
  149.        ██ MODE ██  (external) is a command to setup the printer, 
  150.        display and communications outputs of your computer. Use mode 
  151.        when you have several printers, two or more monitors, several 
  152.        display types (color and mono-chrome). 
  153.  
  154.        Example: a>mode co80             (set display mode to color,80 
  155.                                         columns wide) 
  156.  
  157.        Example: b>mode lpt1=com1        (set printer to com port number 
  158.                                         1) 
  159.  
  160.        Example: a>mode com1:10,n,8,1,p  (set modem transmission 
  161.                                         settings) 
  162.  
  163.        Example  b>mode bw80,r           (set monitor to b&w text, 80 
  164.                                         columns wide) 
  165.  
  166.        ██ MORE ██ (external) causes the display to pause when reading a 
  167.        long file or directory. More is always combined with other DOS 
  168.        commands. 
  169.  
  170.        ██ REDIRECTION AND PIPING ██ Are not DOS commands but methods: 
  171.  
  172.        Some commands (e.g., DIR) can use MORE, SORT and other DOS 
  173.        "filters" with a special vertical bar | in a method called 
  174.        "piping". Piping is best explained as "filtering" a DOS action 
  175.        through yet another DOS program or command. 
  176.  
  177.        Example a>dir|more              (DIR listing is "piped" through 
  178.                                        MORE) 
  179.  
  180.        Example: b>type letter.txt|more (letter.txt is "piped" through 
  181.                                         MORE) 
  182.  
  183.        ██  < and > ██ are input/output symbols. They help DOS send and 
  184.        receive signals properly. You can redirect the output from or 
  185.        towards a particular device. For example if the output of a file 
  186.        normally goes to the screen you could redirect it with the > 
  187.        symbol to the printer. Or in another example, you could redirect 
  188.        the input for a DOS command from a file, rather than the 
  189.        keyboard so you would not have to answer a series of questions - 
  190.        the file would provide the keystrokes. 
  191.  
  192.        Example: a>sort<letter.txt>letter.new    (sort letter.txt and 
  193.                                                 output to a new file 
  194.                                                 called letter.new) 
  195.  
  196.        Example: b>dir>prn  (meaning produce a directory listing, but 
  197.        send the output to the printer, rather than the screen). 
  198.  
  199.        Example: format b:<special.txt (format a floppy and accept input 
  200.        keystrokes from the file special.txt rather than input from the 
  201.        keyboard.)  
  202.  
  203.        ██ SORT ██ (external) sorts data lists in alphabetical or 
  204.        reverse order. It is frequently used with redirection and piping 
  205.        methods to sort directories, lists of text or to output its 
  206.        actions into a new file or directly to the printer. 
  207.  
  208.        Example: a>dir|sort    Example: sort<letter.doc>new.doc 
  209.  
  210.        ██ GRAPHICS ██ (external) allows you to print the contents of a 
  211.        graphics display (e.g., a lotus graph on the screen) while using 
  212.        the SHIFT-PRTSC key combination mentioned earlier. Graphics mode 
  213.        software use medium resolution CGA color displays or other 
  214.        graphics displays which will not print using the standard SHIFT-
  215.        PRTSC key until the DOS graphics command has been loaded. 
  216.        Graphics is a memory resident program which uses some RAM 
  217.        memory. 
  218.  
  219.        Example: a>graphics 
  220.  
  221.        ██ FIND ██ (external) searches for words and phrases in a file. 
  222.        You cannot use wild cards (? and *). You must use quotes 
  223.        surrounding the phrase or word which is sought. 
  224.  
  225.        Example: a>find "chocolate candy bars" letter.txt bones.wks 
  226.  
  227.        (meaning search for "chocolate candy bars" within the two 
  228.        files listed) 
  229.  
  230.        ██ ASSIGN ██ (external) tells DOS to send disk requests for one 
  231.        drive to the other. Effectively renames your a drive the b drive 
  232.        and vice versa. Allows you to access only certain drives for 
  233.        security reasons (remote modem use, for example). By itself, 
  234.        assign simply restores the normal drive configurations and 
  235.        names. DISKCOPY and FORMAT commands ignore assign! Use of assign 
  236.        command is rare. 
  237.  
  238.        Example: b>assign c=a 
  239.  
  240.        ██ PATH ██ (internal) tells DOS where to search for executable 
  241.        files in the subdirectories you specify. Allows simultaneous 
  242.        searching of many subdirectories at once. Path eliminates the 
  243.        need to search through many subdirectories manually. Frequently 
  244.        used to establish a path command in your autoexec.bat file when 
  245.        starting the computer each time (more on this later) 
  246.  
  247.        Example: c>path \letters;\finance;\utils 
  248.  
  249.        ██ PROMPT ██ (internal) allows change of the DOS prompt - the 
  250.        dull a> on screen. $P shows the active directory. $G shows the > 
  251.        symbol. This can be setup in the autoexec.bat file to initialize 
  252.        the prompt every time you start your computer. 
  253.  
  254.        Example: a>prompt $P$G.   (result is:    a:\>   ) 
  255.  
  256.        ██ TREE ██ (external) shows the structure of the subdirectories 
  257.        on your disk. You can check the arrangement of the root (main) 
  258.        and all subdirectories. Tree/f shows all file names. 
  259.  
  260.        Example: b>tree/f 
  261.  
  262.        ██ ATTRIB ██ (external) allows a file to be set as "read only" 
  263.        (non-erasable). Attrib +r marks for read only. Attrib -r removes 
  264.        this. Protects files from modification or removal. Attrib alone 
  265.        displays file attributes. A small r appears to the left of a 
  266.        files directory listing if that file is read only (protected). 
  267.        Only available in DOS 3.0 and later. 
  268.  
  269.        Example: a>attrib +r letters.doc 
  270.  
  271.        ██ BACKUP & RESTORE ██ (external) used to making spare copies 
  272.        (backups) of hard disk data. Copies groups of files to floppies. 
  273.        Restore reverses the process and puts the files from floppies to 
  274.        hard disk. Backup/m copies only files modified since the last 
  275.        backup. Backup/s copies all subdirectories and their files. 
  276.        Backup/d copies files modified after the date you specify. 
  277.        Backup/a adds files to a disk that already contains other files. 
  278.        Files copied to floppies with backup can't be used (they are 
  279.        "encoded") until they are restored ("unencoded"). Restore/s puts 
  280.        back all subdirectory files. 
  281.  
  282.        Example: a>backup c:\*.* a:/s 
  283.  
  284.        Example: c>restore a:\*.* c:/s 
  285.  
  286.        ██ EDLIN ██ (external) is a small word processor/text editor 
  287.        which prepares files. 
  288.  
  289.        Its output is ASCII (plain text). Edlin is rudimentary. Other 
  290.        word processors (text editors) can output ASCII files more 
  291.        quickly and easily, but edlin is good for short jobs. The copy 
  292.        con command (discussed earlier) will do the job also. The entire 
  293.        list of edlin commands is detailed in your DOS manual. 
  294.  
  295.        Example: a>edlin go.bat 
  296.  
  297.        ██ VDISK ██ (external) is a "ramdisk" which allows you to 
  298.        construct an artificial "software" disk drive in computer 
  299.        memory. It is very fast and uses RAM memory. Also known as a 
  300.        virtual disk. VDISK.SYS is usually placed in the configuration 
  301.        file (more on this in a bit) with the device command. VDISK is 
  302.        available in DOS 3.0 and later. DOS 2.0 users can use 
  303.        alternative "add in" RAMDISK utilities to produce the same 
  304.        result. 
  305.  
  306.        Example: device=vdisk.sys 128    (sets up a ramdisk of 128,000 
  307.                                         bytes in size) 
  308.  
  309.        ██ CONFIG.SYS ██ is not a DOS command, but a file which tells 
  310.        DOS the "configuration" or structure of your computer. On 
  311.        startup of the PC, it helps DOS determine the status of screens, 
  312.        keyboards, ramdisks, hard drives and other "customizations" to 
  313.        your system. Following is an example listing of what might be 
  314.        contained WITHIN the config.sys file. Your DOS manual contains 
  315.        additional information of the CONFIG.SYS file and its many uses. 
  316.  
  317.          device=hardisk.sys  
  318.          device=vdisk.sys  
  319.          buffers=20 
  320.          files=20 
  321.          device=ansi.sys 
  322.  
  323.        You can create a config.sys file in the same manner as creation 
  324.        of a batch file (with the copy con instruction or with any ascii 
  325.        word processor or text editor such as DOS Edlin). 
  326.  
  327.  
  328.